﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace HF.WorkFlow.DataContract
{
    /// <summary>
    /// 连线信息数据契约
    /// </summary>
    /// <remarks>描述连线信息的数据契约</remarks>
    [DataContract]
    public class WorkLineEntity
    {
        /// <summary>
        /// 连线Id
        /// </summary>
        [DataMember]
        public string WorkLineId { get; set; }
        /// <summary>
        /// 流程模板Id
        /// </summary>
        [DataMember]
        public string WorkFlowId { get; set; }
        /// <summary>
        /// 起始任务Id
        /// </summary>
        [DataMember]
        public string StartTaskId { get; set; }
        /// <summary>
        /// 结束任务Id
        /// </summary>
        [DataMember]
        public string EndTaskId { get; set; }
        /// <summary>
        /// 条件表达式
        /// </summary>
        [DataMember]
        public string Condition { get; set; }
        /// <summary>
        /// 连线上显示的文字说明
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        /// <summary>
        /// 折点X坐标，多个折点间逗号分隔
        /// </summary>
        [DataMember]
        public string BreakX { get; set; }
        /// <summary>
        /// 折点Y坐标，多个折点间逗号分隔
        /// </summary>
        [DataMember]
        public string BreakY { get; set; }
        /// <summary>
        /// 关联命令的名称
        /// </summary>
        [DataMember]
        public string CommandName { get; set; }
        /// <summary>
        /// 命令级别，默认值 0(最高)
        /// </summary>
        [DataMember]
        public int Priority { get; set; }
        /// <summary>
        /// 命令级别，默认值 0(最高)
        /// </summary>
        [DataMember]
        public int startLx { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public int startLy { get; set; }
        /// <summary>
        /// 命令级别，默认值 0(最高)
        /// </summary>
        [DataMember]
        public int endLx { get; set; }
        /// <summary>
        /// 命令级别，默认值 0(最高)
        /// </summary>
        [DataMember]
        public int endLy { get; set; }
        
    }
}
